package iterator;

/**
 * @author Koizumi Sinya
 * @date 2018/04/02. 15:52
 * @edithor
 * @date
 */
public class Main {
    public static void main(String[] args) {
        MyList<String> list = new MyList<>();
        list.add("123");
        list.add("456");
        list.add("789");
        list.add("000");
        ICustomIterator<String> iterator = list.getIterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }


    }
}
